package com.flash.GlobalManagement.service.impl;

import com.flash.GlobalManagement.entity.Menu;
import com.flash.GlobalManagement.mapper.LoginMapper;
import com.flash.GlobalManagement.service.LoginService;
import com.flash.demo.mapper.UserDemoMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类的描述：登录权限验证
 * @author Liy
 * @version 1.0
 * @since 2022/7/14
 */
@Service
@Transactional
public class LoginServiceImpl implements LoginService {

    @Resource
    private LoginMapper loginMapper;

    @Override
    public int login(String userName, String userPas) {
        return loginMapper.login(userName,userPas);
    }

    @Override
    public List<Menu> loadLogin() {
        return loginMapper.loadLogin();
    }

    @Override
    public int countUser() {
        return loginMapper.countUser();
    }


}
